import request from '@/utils/request'

//查询课题词典
export function listAll(query){
    return request({
        url:'/nepu/subject/dicts',
        method: 'get',
        params: query
    })
}

//修改
export function updateDict(data) {
  return request({
      url:'/nepu/subject/dicts',
      method: 'put',
      data: data
  })
}

// 查询单条详细
export function getDict(id) {
  return request({
    url: '/nepu/subject/dicts/' + id,
    method: 'get'
  })
}


// 新增课题词典
export function addDict(data) {
    return request({
      url: '/nepu/subject/dicts',
      method: 'post',
      data: data
    })
}

//删除课题词典
export function delDict(dictId) {
    return request({
      url: '/nepu/subject/dicts/' + dictId,
      method: 'delete'
    })
  }